﻿using Parylene_CVD.Model.DModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Parylene_CVD.DAL
{
    public class DeviceCoatingParametersDAL : BaseDAL<DeviceCoatingParameters>
    {
        public List<DeviceCoatingParameters> GetAllDeviceCoatingParameters()
        {
            return GetModelList("");
        }

        public List<DeviceCoatingParameters> GetDeviceCoatingParameters(string strWhere, string strCols)
        {
            return GetModelList(strWhere, strCols, null);
        }

        public int AddDeviceCoatingParameters(DeviceCoatingParameters DeviceCoatingParameters, string strCols)
        {
            int a = Add(DeviceCoatingParameters, strCols, 0);
            return a;
        }

        public bool AddListDeviceCoatingParameters(List<DeviceCoatingParameters> DeviceCoatingParameterss, string strCols)
        {
            bool a = AddList(DeviceCoatingParameterss, strCols);
            return a;
        }

        public bool UpdataDeviceCoatingParameters(DeviceCoatingParameters DeviceCoatingParameters, string strCols)
        {
            return Update(DeviceCoatingParameters, strCols);
        }
        public bool UpdataDeviceCoatingParameters(DeviceCoatingParameters DeviceCoatingParameters, string strCols, string strWhere)
        {
            return Update(DeviceCoatingParameters, strCols, strWhere, null);
        }
        public bool UpdataListDeviceCoatingParameters(List<DeviceCoatingParameters> DeviceCoatingParameterss, string strCols)
        {
            return UpdateList(DeviceCoatingParameterss, strCols);
        }

        public bool DeleteDeviceCoatingParametersByID(object id)
        {
            return Delete(id);
        }

        public bool DeleteDeviceCoatingParameters(string strWhere)
        {
            return Delete(strWhere, null);
        }

        public bool DeleteListDeviceCoatingParametersByID(List<object> idList)
        {
            return DeleteList(idList);
        }
    }
}
